﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Contra
{
    class Bullet 
    {    
        protected Texture2D texture;

        public Vector2 position
        {
            get;
            set;
        }
        public Vector2 velocity;
        
        public bool isVisible
        {
            get;
            set;
        }
        public Rectangle BulletRec
        {
            get;
            set;
        }

        public Bullet(Texture2D newTexture) 
        {
            texture = newTexture;
            isVisible = false;
        }

  
        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, position , Color.White);
        }

     

        public void UpDate()
        {
            BulletRec = new Rectangle((int)position.X, (int)position.Y, 10, 10);
        }


    }



}
